

#ifndef API_H
#define	API_H

#include "Frame.h"

static const int M_EVENT=1;
static const int A_EVENT=2;
static const int NULL_EVENT=255;

typedef struct Event_map{
    Event_map(){}
    Event_map(const Event_map &em)
    {
        evt_id = em.evt_id; 
        check_in = em.check_in;
    }
    
    int                 evt_id;
    time_t              check_in;
}Event_map;

typedef struct Data_map{
    Data_map(){}
    Data_map(const Data_map &dm)
    {
        size = dm.size; 
        data = dm.data;
    }
    
    int size;
    void *data;              
}Data_map;


class Quiface{
    
public:
    
    char raw_data[1500];
    int api_queue_id;
    long PORT;
    int stuct_size;
    unsigned short f_time;
    time_t now;
    int t_number;
    void* p_this;
    
    static bool quality_of_control;
    
    Quiface();
    Quiface(long,int,int);
    virtual ~Quiface();
    static void *Qfilter(void*); 
    Event_map Pop();
};
        
        


#endif	/* API_H */

